package com.newcapec.lesson4;

public class Demo1 {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4, 5, 6, 12};
        int[] arr2 = new int[]{1, 2, 3, 4, 5, 6, 12};
        int[] arr3 = new int[10];
        float[] arr4 = new float[10];
        double[] arr5 = new double[10];
        char[] arr6 = new char[10];
        boolean[] arr7 = new boolean[10];

        int[] arr11 = new int[10];

        int a = 0;
        System.out.println(a);
/**二维数组***/
        int[][] arrs = {
                {1, 2, 3},
                {2, 3, 4}
        };

        int[][] arrs2 = new int[][]{
                {1, 2, 3},
                {2, 3, 4}
        };

        int[][] arrs3 = new int[10][10];
        for(int i = 0; i < arrs3.length; i++){
            for(int j = 0; j < arrs3[i].length; j++){
                System.out.println(arrs3[i][j]);
            }
        }

        int[][] arrs4 = new int[10][];
        for(int i = 0; i < arrs4.length; i++){
            for(int j = 0; j < arrs4[i].length; j++){
                System.out.println(arrs4[i][j]);
            }
        }
    }
}
